﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Students.Bases
{
    public class BasePage : System.Web.UI.Page
    {
        public bool IsAuthenticated
        {
            get
            {
                if (Session["OAuth"] == null)
                    return false;
                return true;

            }
        }

        public BOStudents AuthenticateInfo
        {
            get
            {
                if (IsAuthenticated)
                    return ((BOStudents)Session["OAuth"]);
                return null;

            }
        }
    }
}